package ltd.trackan.messagecenter.GreenLoong.entity;
/*
 * @Date: 2023-12-25 14:32:52
 * @LastEditTime: 2024-02-24 11:52:43
 * @LastEditors: Andwxa
 * Github:https://github.com/Andwxa
 * @Description: 任务实体类
 */

import lombok.Data;

import java.util.ArrayList;

@Data
public class Task {
    private String command;// 运行的脚本/命令：tack ...
    private String createdAt;// 创建时间：2023-11-01 T00:34:45.842 Z
    private int id;// 固定id
    private int isDisabled = 0; // 是否失效,0不失效,1失效
    private int isPinned = 1; // 是否顶置,0不,1是
    private int isSystem;//
    private ArrayList<String> labels;//
    private long last_execution_time;// 最后执行时间戳
    private long last_running_time;// 最后运行的时间单位秒
    private String log_path;// 日志位置：6d ylan6_jdpro_main_jx_cxj_draw_133/2023-12-25-11-10-00-360. log
    private String name; // 脚本名称
    private String pid;
    private boolean saved; // 是否保存
    private String schedule; // 脚本运行配置：10 11***
    private int status;
    private int sub_id;
    private String timestamp; /*
     * Sun Dec 24 2023 15:52:59 GMT+0800(China Standard Time);String
     * updatedAt=2023-12-25 T03:12:15.371 Z
     */
    
    public Task(String command, String createdAt, int id, int isDisabled, int isPinned, int isSystem,
                ArrayList<String> labels,
                long last_execution_time, long last_running_time, String log_path, String name, String pid, boolean saved,
                String schedule, int status, int sub_id, String timestamp) {
        this.command = command;
        this.createdAt = createdAt;
        this.id = id;
        this.isDisabled = isDisabled;
        this.isPinned = isPinned;
        this.isSystem = isSystem;
        this.labels = labels;
        this.last_execution_time = last_execution_time;
        this.last_running_time = last_running_time;
        this.log_path = log_path;
        this.name = name;
        this.pid = pid;
        this.saved = saved;
        this.schedule = schedule;
        this.status = status;
        this.sub_id = sub_id;
        this.timestamp = timestamp;
    }
}